<div class="data-container">
  <div class="title">
    第一步：填写各指标得分
  </div>
  <div class="sub-title">
    <div>表1 请输入各项指标的得分</div>
    <div>注1：环境指标得分可从SimaPro软件中获取，经济、社会和时间范围1-5分，得分越高表明该情境在该指标越具有优势</div>
    <div>注2：四个情境请勿输入完全相同得分，否则无法开展正交化（分母为0）</div>
  </div>
  <!-- [nzScroll]="{ y: '420px' }" -->
  <nz-table #colSpanTable [nzData]="data" nzBordered  [nzShowPagination]="false"
    [nzSize]="'middle'">
    <thead>
      <tr>
        <th colspan="2">四种情境基本得分 </th>
        <th *ngFor="let item of tableHeader">{{item}}</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let item of data; index as i">
        <td *ngIf="item.label1=='环境' && i==0" rowspan="3">{{ item.label1 }}</td>
        <td *ngIf="item.label1=='经济' && i==3" rowspan="2">{{ item.label1 }}</td>
        <td *ngIf="item.label1=='社会' && i==5" rowspan="3">{{ item.label1 }}</td>
        <td *ngIf="item.label1=='时间' && i==8" rowspan="1">{{ item.label1 }}</td>
        <td>{{ item.label2 }}</td>


        <ng-container *ngIf="item.label1!='环境'">
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v1" [nzStep]="1" [nzMin]="1" [nzMax]="5"
              [nzPlaceHolder]="item.t1"></nz-input-number>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v2" [nzStep]="1" [nzMin]="1" [nzMax]="5"
              [nzPlaceHolder]="item.t2"></nz-input-number>
          </td>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v3" [nzStep]="1" [nzMin]="1" [nzMax]="5"
              [nzPlaceHolder]="item.t3"></nz-input-number>
          </td>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v4" [nzStep]="1" [nzMin]="1" [nzMax]="5"
              [nzPlaceHolder]="item.t4"></nz-input-number>
          </td>
        </ng-container>
        <ng-container *ngIf="item.label1=='环境'">
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v1" [nzStep]="1" [nzPlaceHolder]="item.t1"></nz-input-number>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v2" [nzStep]="1" [nzPlaceHolder]="item.t2"></nz-input-number>
          </td>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v3" [nzStep]="1" [nzPlaceHolder]="item.t3"></nz-input-number>
          </td>
          <td>
            <nz-input-number [nzSize]="'small'" [(ngModel)]="item.v4" [nzStep]="1" [nzPlaceHolder]="item.t4"></nz-input-number>
          </td>
        </ng-container>
      </tr>
    </tbody>

  </nz-table>
</div>


